<div class="panel panel-default" ng-controller="SalesRouteListCtrl">
	<div class="panel-heading">
		促销活动 / 指定线路 （{{subject}}） <span
			style="float: right; margin-top: -7px; height: 0px">
			<button type="submit" class="btn m-b-xs w-xs btn-info"
				ui-sref="app.public.sales()">返回</button>
        </span>
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:100px;">优惠线路</th>
					<th style="width:100px;">优惠时间段</th>
					<th style="width:100px;">类型</th>
					<th style="width:80px;">
						<div class="row list-icon">
							<a href tooltip="新增打折线路" has-authority="BOOKING_SALE_ADD"><i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i></a>
						</div>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="sale in dataList">
					<td></td>
 					<td>{{sale.route.city1.name}} ➡ {{sale.route.city2.name}}</td>
 					<td>{{sale.serviceDuration.display}}</td>
 					<td>
 					   <span ng-if="sale.type==1">拼车</span>
 					   <span ng-if="sale.type==2">包车</span>
 					</td>
					<td>
						<div class="row list-icon">
							<a href tooltip="删除" ><i class="fa fa-times fa-fw" ng-click="del('sm',sale,'delete')" ></i></a>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList==''">
					<td colspan="9" style="text-align: center;">暂无优惠线路信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>